feat: distribute Hero WARP enrollment secrets - #62
Open
xnoto wants to merge 2 commits into
Open
Conversation
Contributor
OpenTofu TestOpenTofu test passed. View run output |
Contributor
OpenTofu PlanOpenTofu plan passed. View run outputOpenTofu will perform the following actions:
[REDACTED: potentially sensitive plan output]
[REDACTED: potentially sensitive plan output]
[REDACTED: potentially sensitive plan output]
~ plaintext_value = (sensitive value)
# (7 unchanged attributes hidden)
}
[REDACTED: potentially sensitive plan output]
[REDACTED: potentially sensitive plan output]
+ created_at = (known after apply)
+ id = (known after apply)
+ key_id = (known after apply)
+ plaintext_value = (sensitive value)
+ remote_updated_at = (known after apply)
+ repository = "hero-host-config"
+ repository_id = (known after apply)
[REDACTED: potentially sensitive plan output]
+ updated_at = (known after apply)
}
[REDACTED: potentially sensitive plan output]
[REDACTED: potentially sensitive plan output]
+ created_at = (known after apply)
+ id = (known after apply)
+ key_id = (known after apply)
+ plaintext_value = (sensitive value)
+ remote_updated_at = (known after apply)
+ repository = "hero-host-config"
+ repository_id = (known after apply)
[REDACTED: potentially sensitive plan output]
+ updated_at = (known after apply)
}
[REDACTED: potentially sensitive plan output]
[REDACTED: potentially sensitive plan output]
[REDACTED: potentially sensitive plan output]
~ plaintext_value = (sensitive value)
# (7 unchanged attributes hidden)
}
[REDACTED: potentially sensitive plan output]
[REDACTED: potentially sensitive plan output]
[REDACTED: potentially sensitive plan output]
~ plaintext_value = (sensitive value)
# (7 unchanged attributes hidden)
}
[REDACTED: potentially sensitive plan output]
[REDACTED: potentially sensitive plan output]
[REDACTED: potentially sensitive plan output]
~ plaintext_value = (sensitive value)
# (7 unchanged attributes hidden)
}
[REDACTED: potentially sensitive plan output]
[REDACTED: potentially sensitive plan output]
[REDACTED: potentially sensitive plan output]
~ plaintext_value = (sensitive value)
# (7 unchanged attributes hidden)
}
[REDACTED: potentially sensitive plan output]
[REDACTED: potentially sensitive plan output]
[REDACTED: potentially sensitive plan output]
~ plaintext_value = (sensitive value)
# (7 unchanged attributes hidden)
}
[REDACTED: potentially sensitive plan output]
[REDACTED: potentially sensitive plan output]
[REDACTED: potentially sensitive plan output]
~ plaintext_value = (sensitive value)
# (7 unchanged attributes hidden)
}
[REDACTED: potentially sensitive plan output]
[REDACTED: potentially sensitive plan output]
[REDACTED: potentially sensitive plan output]
~ plaintext_value = (sensitive value)
# (7 unchanged attributes hidden)
}
[REDACTED: potentially sensitive plan output]
[REDACTED: potentially sensitive plan output]
[REDACTED: potentially sensitive plan output]
~ plaintext_value = (sensitive value)
# (7 unchanged attributes hidden)
}
# github_repository.repositories["tfroot-gcp"] will be updated in-place
~ resource "github_repository" "repositories" {
id = "tfroot-gcp"
name = "tfroot-gcp"
~ topics = [
+ "s3-backend",
# (7 unchanged elements hidden)
]
# (36 unchanged attributes hidden)
# (1 unchanged block hidden)
}
# github_repository.repositories["tfroot-twilio"] will be updated in-place
~ resource "github_repository" "repositories" {
id = "tfroot-twilio"
name = "tfroot-twilio"
~ topics = [
- "sms",
# (4 unchanged elements hidden)
]
# (36 unchanged attributes hidden)
# (1 unchanged block hidden)
}
Plan: 2 to add, 11 to change, 0 to destroy.
OpenTofu will perform the following actions:
[REDACTED: potentially sensitive plan output]
[REDACTED: potentially sensitive plan output]
[REDACTED: potentially sensitive plan output]
~ plaintext_value = (sensitive value)
# (7 unchanged attributes hidden)
}
[REDACTED: potentially sensitive plan output]
[REDACTED: potentially sensitive plan output]
+ created_at = (known after apply)
+ id = (known after apply)
+ key_id = (known after apply)
+ plaintext_value = (sensitive value)
+ remote_updated_at = (known after apply)
+ repository = "hero-host-config"
+ repository_id = (known after apply)
[REDACTED: potentially sensitive plan output]
+ updated_at = (known after apply)
}
[REDACTED: potentially sensitive plan output]
[REDACTED: potentially sensitive plan output]
+ created_at = (known after apply)
+ id = (known after apply)
+ key_id = (known after apply)
+ plaintext_value = (sensitive value)
+ remote_updated_at = (known after apply)
+ repository = "hero-host-config"
+ repository_id = (known after apply)
[REDACTED: potentially sensitive plan output]
+ updated_at = (known after apply)
}
[REDACTED: potentially sensitive plan output]
[REDACTED: potentially sensitive plan output]
[REDACTED: potentially sensitive plan output]
~ plaintext_value = (sensitive value)
# (7 unchanged attributes hidden)
}
[REDACTED: potentially sensitive plan output]
[REDACTED: potentially sensitive plan output]
[REDACTED: potentially sensitive plan output]
~ plaintext_value = (sensitive value)
# (7 unchanged attributes hidden)
}
[REDACTED: potentially sensitive plan output]
[REDACTED: potentially sensitive plan output]
[REDACTED: potentially sensitive plan output]
~ plaintext_value = (sensitive value)
# (7 unchanged attributes hidden)
}
[REDACTED: potentially sensitive plan output]
[REDACTED: potentially sensitive plan output]
[REDACTED: potentially sensitive plan output]
~ plaintext_value = (sensitive value)
# (7 unchanged attributes hidden)
}
[REDACTED: potentially sensitive plan output]
[REDACTED: potentially sensitive plan output]
[REDACTED: potentially sensitive plan output]
~ plaintext_value = (sensitive value)
# (7 unchanged attributes hidden)
}
[REDACTED: potentially sensitive plan output]
[REDACTED: potentially sensitive plan output]
[REDACTED: potentially sensitive plan output]
~ plaintext_value = (sensitive value)
# (7 unchanged attributes hidden)
}
[REDACTED: potentially sensitive plan output]
[REDACTED: potentially sensitive plan output]
[REDACTED: potentially sensitive plan output]
~ plaintext_value = (sensitive value)
# (7 unchanged attributes hidden)
}
[REDACTED: potentially sensitive plan output]
[REDACTED: potentially sensitive plan output]
[REDACTED: potentially sensitive plan output]
~ plaintext_value = (sensitive value)
# (7 unchanged attributes hidden)
}
# github_repository.repositories["tfroot-gcp"] will be updated in-place
~ resource "github_repository" "repositories" {
id = "tfroot-gcp"
name = "tfroot-gcp"
~ topics = [
+ "s3-backend",
# (7 unchanged elements hidden)
]
# (36 unchanged attributes hidden)
# (1 unchanged block hidden)
}
# github_repository.repositories["tfroot-twilio"] will be updated in-place
~ resource "github_repository" "repositories" {
id = "tfroot-twilio"
name = "tfroot-twilio"
~ topics = [
- "sms",
# (4 unchanged elements hidden)
]
# (36 unchanged attributes hidden)
# (1 unchanged block hidden)
}
Plan: 2 to add, 11 to change, 0 to destroy. |
14 tasks
xnoto
added a commit
that referenced
this pull request
Sep 6, 2026
## Summary Carry forward the exact owner-authored, SOPS-encrypted Hero WARP enrollment entries from `chore/hero-host-config-warp-secret-source` without reading, decrypting, or changing their ciphertext. This is split from conflicted PR #62 because current `main` refactored the non-secret catalog from `main.tf` into `secrets.tf`. A follow-up PR will add the two non-secret distribution references after these encrypted fields are present on `main`. Fixes # None. ## Type of change - [ ] Bug fix - [ ] Feature / enhancement - [ ] Documentation - [x] Infrastructure (OpenTofu root or module) - [ ] GitOps desired state (manifests, kustomize, charts, SOPS/KSOPS secrets) - [ ] Container image - [ ] CI / reusable workflow - [ ] Refactor / cleanup - [ ] Breaking change ## Validation - [ ] Required pull-request checks pass — pending: `opentofu / test` and `opentofu / plan` are the validation authority. - [x] No target repository file, Actions secret distribution, or workflow was changed; this PR preserves the owner-authored encrypted source file exactly. No local OpenTofu init, plan, apply, import, state, or secret-decryption operation was run or claimed by the agent. ## Impact and rollout **Producer:** this PR changes only the canonical SOPS-encrypted source file in `tfroot-github`. **Consumer:** none until a separate reviewed change adds the `secrets.tf` mappings and a later environment-gated apply runs. It does not distribute a GitHub Actions secret, alter Cloudflare Access, enroll WARP, execute a workflow, or mutate Hero. **Delivery stages:** authored and submitted. Pull-request CI is automatic and pending. Merge remains confirmation-gated; a main apply is a separate confirmation-gated live mutation. **Rollback:** close or revert this PR before any apply. The SOPS source remains encrypted throughout. ## Safety and secrets - [x] Contains only already-encrypted SOPS ciphertext; no plaintext secrets, decrypted SOPS values, state files, kubeconfigs, tokens, or private endpoints are present. - [x] No local OpenTofu init/plan/apply/destroy/import/state operations were run or claimed — plans come from pull-request checks. - [x] No live system is changed by this PR; merge and any future main apply are separately gated. AI-assisted change: an OpenCode agent created this replacement pull request without retrieving or changing the encrypted source material.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add the owner-supplied encrypted SOPS entries for the dedicated Hero WARP service token and declare their narrowly scoped distribution to the private
hero-host-configrepository asHERO_HOST_CONFIG_WARP_CLIENT_IDandHERO_HOST_CONFIG_WARP_CLIENT_SECRET.The Cloudflare producer already exists on applied
tfroot-cloudflaremain. This change does not alter the generic organization-wide Cloudflare authentication-secret broadcast.Fixes #
None.
Type of change
Validation
opentofu / testandopentofu / planpassed.No local OpenTofu init, plan, apply, import, state, or secret-decryption operation was run or claimed by the agent.
Impact and rollout
Producer:
tfroot-cloudflarehas already applied the narrowly scoped WARP service token. This PR makes its owner-supplied encrypted values consumable by the GitHub-management root.Consumer: after a reviewed merge and the environment-gated
mainapply,hero-host-configwill receive exactly two Actions secrets:HERO_HOST_CONFIG_WARP_CLIENT_IDandHERO_HOST_CONFIG_WARP_CLIENT_SECRET. No other repository receives them.Unchanged: the generic
CLOUDFLARE_AUTH_CLIENT_IDandCLOUDFLARE_AUTH_CLIENT_SECRETbroadcasts remain explicitly excluded fromhero-host-config; no host configuration, WARP enrollment, Cloudflared migration, GitHub Actions execution, or production host mutation is included.Delivery stages: authored, submitted, and CI-validated. Merge and the environment-gated root apply remain confirmation-gated. Secret selection in
hero-host-config, workflow execution, host reconciliation, and functional verification are future stages.Rollback: before apply, close or revert this PR. After an apply, remove the two mappings in a separate reviewed change and apply; separately rotate the Cloudflare service token if the credential must be revoked.
Safety and secrets
AI-assisted change: an OpenCode agent materially prepared the OpenTofu secret-distribution mapping and this pull request. The encrypted source entries were added by the owner in a trusted environment.